package com.five.student.dao;

import com.five.student.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface UserMapper {

    User findByUsername(@Param("username") String username);

    List<User> findAll();

    int insertUser(User user);

    int updateLastLogin(@Param("id") Integer id);

    int deleteById(@Param("id") Integer id);
}
